Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netpyne-24 Escape variables that are transmitted to python #772

Merged
merged 6 commits into from
Jan 9, 2024

Conversation

aranega
Copy link
Member

@aranega aranega commented Nov 7, 2023

Fix netpyne-24

@aranega aranega marked this pull request as ready for review November 13, 2023 06:50
@ddelpiano
Copy link
Member

@aranega could you bring the latest dev here as well? tests are failing again. Thx

@aranega
Copy link
Member Author

aranega commented Nov 14, 2023

@ddelpiano They are already there, I pulled/merged yesterday and trying again a git pull origin developement doesn't show any modifications

The issue is located in the PythonControlledCapability, this code:

    model.replace(/"/g, '\\"').replace(/\\/g, '\\\\')

escapes the \ at a bad moment, it should escape it before the "

    model.replace(/\\/g, '\\\\').replace(/"/g, '\\"')
@ddelpiano ddelpiano changed the base branch from development to release/1.1.0 January 9, 2024 14:58
@ddelpiano ddelpiano changed the base branch from release/1.1.0 to development January 9, 2024 14:59
@ddelpiano ddelpiano merged commit 65aa8be into development Jan 9, 2024
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants